package com.weihj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * Created by weihuajiang on 2017/7/4.
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "用户对象", description = "enne")
public class User {

    /** id **/
    @ApiParam(value = "aa", defaultValue = "0", required = true)
    @ApiModelProperty("id")
    private String id;

    /** age年龄 **/
    @ApiModelProperty(value = "年龄", allowableValues = "2(a),3,4")
    private String age;

    @ApiModelProperty(value = "姓名", required = true)
    private String name;

    @ApiModelProperty(value="id编号",name="id")
    List<Child> children;

}
